From 42a4d2633e4c8b4f63504bf7d24e178b075126be Mon Sep 17 00:00:00 2001 From: martin rudalics Date: Thu, 25 Jul 2013 11:58:27 +0200 Subject: [PATCH] In display-buffer bind split-window-keep-point to t, bug#14829. * window.el (display-buffer): In display-buffer bind split-window-keep-point to t, bug#14829. --- lisp/ChangeLog | 5 +++++ lisp/window.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 430f2a36c3e..7a6648247b9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-25 Martin Rudalics + + * window.el (display-buffer): In display-buffer bind + split-window-keep-point to t, bug#14829. + 2013-07-25 Juanma Barranquero * desktop.el: Rename internal "desktop-X" frame params to "desktop--X". diff --git a/lisp/window.el b/lisp/window.el index a2acd2a81b0..86d93c0a9f6 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5470,6 +5470,9 @@ argument, ACTION is t." (let ((buffer (if (bufferp buffer-or-name) buffer-or-name (get-buffer buffer-or-name))) + ;; Make sure that when we split windows the old window keeps + ;; point, bug#14829. + (split-window-keep-point t) ;; Handle the old form of the first argument. (inhibit-same-window (and action (not (listp action))))) (unless (listp action) (setq action nil)) -- 2.30.2